<?php
// define array
$arr = array('one', 'two', 'three', 'four');

// convert array to string
// output: 'one and two and three and four'
echo $str = implode(' , ', $arr);

// define string
$str = 'ti nker,t ailor,so ldier,sp y';

// convert string to array
// output: ('tinker', 'tailor', 'soldier, 'spy')
$arr = explode(' ', $str,2);
print_r($arr);


